unit frm_CalcPeni;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, shbl_Card, PropFilerEh, DBCtrlsEh, StdCtrls, Mask,
  PropStorageEh, ActnList, ComCtrls, ToolWin, Buttons, ExtCtrls;

type
  TfrmCalcPeni = class(TshblCard)
    Label10: TLabel;
    Label12: TLabel;
    DBCheckBoxEh5: TDBCheckBoxEh;
    Label1: TLabel;
    DBDateTimeEditEh1: TDBDateTimeEditEh;
    Label2: TLabel;
    DBNumberEditEh1: TDBNumberEditEh;
    DBNumberEditEh2: TDBNumberEditEh;
    procedure aSaveExecute(Sender: TObject);
    procedure aCancelExecute(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmCalcPeni: TfrmCalcPeni;

implementation

uses spr_Orgs;

{$R *.dfm}

procedure TfrmCalcPeni.aSaveExecute(Sender: TObject);
begin
  inherited;
  ModalResult := mrOk;
end;

procedure TfrmCalcPeni.aCancelExecute(Sender: TObject);
begin
  inherited;
  ModalResult := mrCancel;
end;

procedure TfrmCalcPeni.FormShow(Sender: TObject);
begin
  inherited;
  if DBNumberEditEh2.Value = null then DBNumberEditEh2.Value := 0;   
end;

end.
